<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>视频信息管理系统-视频管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="__STATIC__/assets/ico/favicon.html">
    <link href="__STATIC__/assets/css/bootstrap.css" rel="stylesheet">
    <link href="__STATIC__/assets/css/theme.css" rel="stylesheet">
    <link href="__STATIC__/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="__STATIC__/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="favicon.ico">
 
  </head>
  <body>
    <div id="wrap">
    {include    file="public:header"   /}
    

    <div class="container-fluid">

     {include    file="public:sidemenu"   /}

      <!-- Main window -->
      <div class="main_container" id="users_page">

        <div class="row-fluid">
          <ul class="breadcrumb">
            <li><a href="#">首页</a> <span class="divider">/</span></li>
            <li class="active">视频管理</li>
          </ul>

        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>视频列表</h5>
   
            </div>  
            <div class="widget-body">
 
<form  method="POST" action="{:url('update')}" enctype="multipart/form-data">
<input type="hidden" name="vid" value="{$video.vid}">
  <div class="form-group">
    <label for="videoname" class="col-md-2 col-xs-2 control-label">视频名称</label>
    <div class="col-md-10 col-xs-10">
      <input type="text" class="form-control" id="videoname" placeholder="videoname" name="videoname"  value="{$video.videoname}" required>
    </div>
  </div>

    <div class="form-group">
    <label  class="col-md-2 col-xs-2 control-label">视频类型</label>
    <div class="col-md-10 col-xs-10">
    <select class="form-control" name="videotype">

  {volist name="types" id="vo"}
  <option value='{$vo.tid}'  {if condition='$vo.tid eq $video.tid'}selected{/if}    >{$vo.typename}</option>
  {/volist}
</select> 
    </div>
  </div>
  
<div class="form-group">
    <label  class="col-md-2 col-xs-2 control-label">视频海报</label>
    <div class="col-md-10 col-xs-10">
    <input type="hidden" name="MAX_FILE_SIZE" value="3000000">
        <input type="file" id="exampleInputFile" name="pic">
        <input type="hidden" name="pic2" value="{$video.pic}">
        <img src="__STATIC__/posters/{$video.pic}" style="width:100px">
      </div>
  </div>


<div class="form-group">
<label  class="col-md-2 col-xs-2 control-label">视频简介</label>
    <div class="col-md-10 col-xs-10">
       <textarea class="form-control" rows="3" name="videointro" required>{$video.intro}</textarea>
      </div>
</div>

 <div class="form-group">
    <label for="address" class="col-md-2 col-xs-2 control-label">下载地址</label>
    <div class="col-md-10 col-xs-10">
      <input type="text" class="form-control" id="address" placeholder="address"  value="{$video.address}" name="address" required>
    </div>
  </div>


    
  <div class="form-group">
    <div class="col-xs-offset-2 col-xs-10">
      <input type="submit" class="btn btn-default" value="修改">
     <input type="reset" class="btn btn-default" value="重置">
  </div>
  </div>
</form>      




            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

      </div>
      <!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->

 
	{include    file="public:footer"   /}
  
  </body>
</html>
